home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir44 / jaylife.zip / LIFE-21.DOC < prev    next >
Text File  |  1989-06-15  |  17KB  |  397 lines

  1.  
  2.  
  3.  
  4.                                     LIFE-21.DOC
  5.  
  6.         LIFE-21 is a text mode version of J. H. Conway's game of Life.
  7.  
  8.         LIFE-21 is written to run on any IBM-PC compatible computer.
  9.  
  10.         All of the source code is written in Borland's Turbo Pascal and
  11.         Turbo Assembler dialects.
  12.  
  13.         LIFE-21 is a shareware program, Copyright 1989 by Jeff Anderson, New
  14.         Concord, Ohio.  All rights reserved, except that the shareware set
  15.         of files may be freely copied as long as no charge is imposed for
  16.         the files themselves, and the shareware version of LIFE-21 may be
  17.         used for evaluation purposes.
  18.  
  19.  
  20.                 ***************************************************
  21.  
  22.         What the heck is this game of Life, and who is J. H. Conway?
  23.  
  24.         John Horton Conway is an outstanding mathematician and a creator of
  25.         mathematical games.  He created his game of Life in the late '60s at
  26.         the University of Cambridge.  Life is a simulation game which uses a
  27.         harshly Spartan set of rules to generate a lavish universe of unlim-
  28.         ited possibilities.
  29.  
  30.         The simulation in Life is played out (theoretically) on an infinite
  31.         two-dimensional grid where each square of the grid can either be
  32.         occupied by a "live" cell or be empty; a truly binary landscape.
  33.  
  34.         The rules of Life were chosen so that, imagining living cells in a
  35.         two-dimensional universe, the simulation would resemble birth,
  36.         growth and death patterns.  John Conway started with a modest list
  37.         of objectives:
  38.          >>  No simple initial pattern should obviously grow forever.
  39.          >>  Some initial patterns should seemingly grow forever.
  40.          >>  Some simple initial patterns should grow for a period of time,
  41.              and then become stable or disappear.
  42.  
  43.         The rules Conway finally reached are these:
  44.          Rule 1 - Start with a given initial pattern of living cells in the
  45.                   grid squares (creation).
  46.          Rule 2 - If an empty square has exactly 3 living cells as immediate
  47.                   neighbors, then that square will have a living cell in the
  48.                   next generation (birth).
  49.          Rule 3 - If a square with a living cell in it has 2 or 3 living
  50.                   cells as neighbors, then that square will have a living
  51.                   cell in the next generation (survival).
  52.          Rule 4 - All squares which do not meet the requirements of Rule 2
  53.                   or Rule 3 will be empty in the next generation (death).
  54.  
  55.         Before fractals became the rage, the Life simulation was probably
  56.         implemented on every college mainframe in the United States, and a
  57.         number of limited-performance programs were written on personal
  58.         computers.  Life Version 2.1, the program you have here, is the
  59.  
  60.  
  61.                                         1
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.         first full-feature Life game to run on a personal computer.
  71.  
  72.         LIFE-21 can create initial patterns using direct screen editing or
  73.         recall of previously saved patterns.  It runs the Life simulation on
  74.         a spacious grid (64k x 64k), and the number of live cells at one
  75.         time is limited only by the memory available (over 4000 live cells
  76.         fit in a 640k MS/DOS-3.3 system).  The simulation can be stopped and
  77.         the pattern edited or saved at any time.  Thanks to some clever code
  78.         (and to the excellent programming tools from Borland), the simula-
  79.         tion speed of LIFE-21 outstrips most minicomputer Life games and
  80.         compares well to some mainframe setups.
  81.  
  82.  
  83.                 ***************************************************
  84.  
  85.                        So what does one do with a Life game?
  86.  
  87.         Martin Gardner brought the Life game out of the universities and
  88.         into the public view through a series of articles in Scientific
  89.         American starting in 1970.  These articles were subsequently col-
  90.         lected and expanded in one of his books, "Wheels, Life and Other
  91.         Mathematical Amusements," published by W. H. Freeman and Company.
  92.  
  93.         For an overall view of the history, beauty and possibilities of the
  94.         Life simulation, this is the book to read.  Most public libraries
  95.         either have it or will get it for you on request.  If you wish to
  96.         pursue the theoretical implications of the Life model or cellular
  97.         automata in general, then the bibliography in Gardner's book is
  98.         essential.
  99.  
  100.         To try the simulation out:
  101.  
  102.         Run LIFE-21 from a directory containing all the shareware distribu-
  103.         tion files (or all the files from the REGISTER.ED directory on your
  104.         licensed floppy).
  105.  
  106.         At the opening screen (or the IDLE menu) type "F" to get to the FILE
  107.         menu, then type "F" for (F)etch.
  108.  
  109.         You will be presented with a list of pattern names.  Type one of
  110.         these names and then a carriage return <ENTER>.
  111.  
  112.         If you list the files that come with LIFE-21, you'll find these
  113.         patterns each in its own file with the extension ".LIF" on each.
  114.  
  115.         After your selection, the pattern will be read from the disk.  Then
  116.         the pattern will be painted on the screen, and the program will
  117.         return to the IDLE menu.
  118.  
  119.         Type "R" to get to the RUN menu.  Type "S" to (S)tep the Life simu-
  120.         lation from one generation to another.
  121.  
  122.         You can observe how the 3-2 rule is applied to all the imaginary
  123.         grid spaces on the screen.  All squares with exactly 3 living neigh-
  124.         bors will have a live cell on the next generation, and all live
  125.  
  126.  
  127.                                         2
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.         cells with 2 or 3 living neighbors will survive on the next genera-
  137.         tion.  You can move the pattern around on the screen with the cursor
  138.         control keys or the numeric keypad.  If you have a numeric keypad,
  139.         then you can move the cursor diagonally, otherwise you're stuck with
  140.         the up/down and right/left movement of the cursor control keys.
  141.  
  142.         When you're satisfied with the way the simulation works from one
  143.         generation to another, clear the grid by typing "E" to bring up the
  144.         EDIT menu, then type "C" to (C)lear.
  145.  
  146.         Go back to the FILE menu by typing "F", then type "F" again to
  147.         (F)etch another pattern file.  This time type in "BL-CAP" when the
  148.         program asks for the pattern name.
  149.  
  150.         Now go to the RUN menu by typing an "R", then type "G" to let the
  151.         simulation (G)o at full speed (if you're using the shareware version
  152.         of LIFE-21, then you'll have to type "G" to continue after every 32
  153.         generations).  The simple "blasting cap" pattern grows and changes
  154.         for 174 generations, then it settles down into a bunch of small
  155.         still life patterns and some blinkers.  The complete pattern can't
  156.         fit on the screen.  If you want to view it all, you'll have to use
  157.         the cursor keys (or numeric keypad) to move the pattern around.
  158.  
  159.         You can create patterns, modify patterns, and clear the grid, all
  160.         from within the EDIT menu.  Use the cursor control keys (or numeric
  161.         keypad keys) to move the cursor.  Any one of several (T)oggle keys
  162.         will change the imaginary square from empty to live and back again.
  163.         The toggle keys are "T", "0", "5", <space> and <enter>.
  164.  
  165.         Try building some of your own patterns or modifying some of those
  166.         provided.  When you see a pattern you would like to keep, use "F" to
  167.         reach the FILE menu, then type "S" to (S)ave the pattern to the
  168.         disk.  Keep the pattern name as descriptive as possible, even though
  169.         you're limited to eight characters by MS-DOS.
  170.  
  171.  
  172.                 ***************************************************
  173.  
  174.                       What comes with the LIFE-21 simulation?
  175.  
  176.         Along with the program LIFE-21.EXE and this LIFE-21.DOC file, the
  177.         distribution disk comes with a number of pattern files which all
  178.         have the file name extension type of ".LIF."  These patterns were
  179.         chosen to intrigue the newcomer.  They are named:
  180.  
  181.         ACORN     BL-CAP    E-LSS     E-OWSS    FUSE      G-G
  182.         NW-GLID   OSC-6     PUFFER    PULSAR    R-PENT    S-HSS
  183.         T-BIRD    TUMBLER   W-MSS
  184.  
  185.         The ACORN, BL-CAP (BLasting CAP), R-PENT (R PENTomino) and T-BIRD
  186.         (ThunderBIRD) are called Methuselah patterns.  They start from less
  187.         than 10 live cells and require at least 50 generations to stabilize.
  188.         As a matter of fact the ACORN requires 5,206 generations to grow
  189.         into a stable "tree" of 633 live cells.
  190.  
  191.  
  192.  
  193.                                         3
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.         The E-LSS (Eastbound Light SpaceShip), E-OWSS (Eastbound OverWeight
  203.         SpaceShip), NW-GLID (NorthWest bound GLIDer), S-HSS (Southbound
  204.         Heavy SpaceShip) and W-MSS (Westbound Medium SpaceShip) are all
  205.         called spaceships since they replicate themselves with a slight
  206.         offset, thus "moving" along the grid space.
  207.  
  208.         The example glider moves Northwest (toward the upper left on the
  209.         screen).  You can draw your own glider patterns using the EDIT mode,
  210.         and these can move in any of the diagonal directions.  The other
  211.         spaceship patterns furnished travel on the square, that is, North,
  212.         South, East or West.  Again, you can redraw any of the example
  213.         spaceships to make them move in another direction.
  214.  
  215.         Much of the early research (some called it play) with Life consisted
  216.         of crashing spaceships into each other to see what would happen.
  217.         Good clean fun, and you can call it mathematical study!
  218.  
  219.         OSC-6 (OSCillator with period 6), PULSAR and TUMBLER are all oscil-
  220.         lators (figures which move, but repeat themselves in the same place
  221.         on the grid after some number of generations).  The simplest of
  222.         these you can make yourself with three live cells in a row.  This
  223.         period-two oscillator is called a blinker.
  224.  
  225.         The FUSE is a simple pattern which "burns" diagonally.  You can find
  226.         several variations on this theme in Conway's book.  Copies of these
  227.         variations are included on the disk with your registered copy of
  228.         LIFE-21.
  229.  
  230.         The G-G (Glider Gun) is one of the most fascinating Life patterns
  231.         because it is an oscillator with a very high period of 30 genera-
  232.         tions, and because its debris becomes a glider which flies away once
  233.         each period.  This was the first pattern discovered which could grow
  234.         forever on an infinite Life grid.
  235.  
  236.         The PUFFER is an example of a class of "dirty" spaceship patterns
  237.         which give off debris as they travel.  PUFFER's debris vanishes
  238.         after a few generations, but some dirty spaceships leave a permanent
  239.         trail of still life patterns behind.  These also could grow forever
  240.         on an infinite grid.
  241.  
  242.  
  243.                 ***************************************************
  244.  
  245.                          Some notes on the LIFE-21 program
  246.  
  247.         LIFE-21 is a shareware package, or "try before you buy" software.
  248.         As such, its success depends on fulfilling your expectations and not
  249.         on expensive high-pressure marketing or glitzy packaging.  Because
  250.         the shareware seller sidesteps most of the usual marketing expense,
  251.         shareware programs can show a profit at a fraction of the price of
  252.         equivalent retail software.
  253.  
  254.         By their very nature shareware programs are freely copied and passed
  255.         around among users and bulletin boards.  Because of this, the possi-
  256.         bility always exists for unauthorized modification of the software.
  257.  
  258.  
  259.                                         4
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.         Jayel Systems has developed a simple protection scheme which pre-
  269.         vents nonprofessional sabotage of its programs or implanting of
  270.         virus-type code.  As long as the program is executed from within its
  271.         own directory area, a Jayel Systems program will check itself
  272.         against an embedded check-sum as soon as it is loaded.  Then, after
  273.         displaying the opening message, as soon as the user tries to operate
  274.         one of the standard program routines the program will terminate with
  275.         an appropriate message.
  276.  
  277.         So long as a Jayel Systems program displays its opening message
  278.         screen and runs normally you can be sure the program is "clean."  If
  279.         the program tells you it has been modified and terminates, then get
  280.         rid of it and warn the person who shared it with you.  Don't risk
  281.         your computer system to a contaminated program.
  282.  
  283.  
  284.                 ***************************************************
  285.  
  286.                            OK, now I know all about Life!
  287.                             Should I bother to register?
  288.  
  289.         If you've decided you like the Life simulation of LIFE-21 and want
  290.         to use it, then you should register.
  291.  
  292.         This Life simulation is not a public domain program.  The distribu-
  293.         tion version is provided free to public Bulletin Boards and share-
  294.         ware vendors.  All the distribution material is copyrighted and
  295.         includes a limited license to copy and use for evaluation.
  296.  
  297.         This material must not be sold for profit (except for reasonable
  298.         charges for copying) or used for purposes other than evaluation
  299.         without the express written permission of Jayel Systems.
  300.  
  301.         When you register LIFE-21 you will receive a new disk with the
  302.         latest revision of this program and any enhancements.  This disk is
  303.         your property and can be used and treated just like any other piece
  304.         of copyrighted material you own (e.g. a book or record).
  305.  
  306.         Additional patterns are included with your registered copy of LIFE-
  307.         21, along with your own personal serial number and a utility to
  308.         print out the patterns you find interesting.
  309.  
  310.         When a registered LIFE-21 simulation is run, the (G)o command will
  311.         not stop after every 32 generations and some features not mentioned
  312.         here are activated.
  313.  
  314.         Registered users should go on to read LIFE-LIC.DOC next.
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.                                         5
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                            REGISTRATION FORM FOR LIFE-21
  335.  
  336.  
  337.         DATE:__________________________
  338.  
  339.         NAME:__________________________________________________________
  340.  
  341.         (enter your name as you want it shown on the opening screen)
  342.  
  343.         ORGANIZATION NAME:_____________________________________________
  344.  
  345.         HOME ADDRESS:__________________________________________________
  346.  
  347.         HOME CITY, STATE, ZIP:_________________________________________
  348.  
  349.         SITE LICENSE ADDRESS:__________________________________________
  350.  
  351.         (enter address as you want it shown on the opening screen)
  352.  
  353.         SITE CITY, STATE, ZIP:_________________________________________
  354.  
  355.         TELEPHONE NUMBER(S):___________________________________________
  356.  
  357.  
  358.         [ ] - Please send me a registered PERSONAL copy of LIFE-21.  I've
  359.               enclosed payment of U.S.$10.00.
  360.  
  361.         [ ] - Please send me a SITE LICENSED copy of LIFE-21.  I've
  362.               enclosed payment of U.S.$25.00.
  363.  
  364.         [ ] - I need the program on 3.5" floppy.  I've enclosed $2 extra.
  365.  
  366.         Because of the difficulty of pricing shipments for delivery outside
  367.         the U.S., Jayel Systems will only fill foreign orders which are
  368.         accompanied by payment with a negotiable instrument in U.S. dollars
  369.         at the prices as shown above and accompanied by a postal return
  370.         coupon for airmail delivery of a 3oz (100Gm) package.
  371.  
  372.         Ohio residents pay the same $10/$25 prices, but actually receive a
  373.         slight discount since Jayel Systems includes Ohio State sales tax in
  374.         this price.
  375.  
  376.  
  377.         NOTE!  Payment for several copies may be combined, but please fill
  378.         out a separate registration form for each copy of LIFE-21.
  379.  
  380.  
  381.  
  382.  
  383.         SEND COMPLETED FORM TO:
  384.                                   JAYEL SYSTEMS
  385.                                   P. O. BOX 323
  386.                                   NEW CONCORD, OH 43762
  387.  
  388.  
  389.  
  390.  
  391.                                         6
  392.  
  393.  
  394.  
  395.  
  396.  
  397.